﻿namespace Web.Control.WWW.Feedback
{
    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using System.Text.RegularExpressions;
    using System.IO;
    using Lx.Web.Common.ControlsUI;
    using Lx.Web.Common.UI;
    using System.Xml;
    using System.Xml.Schema;

    using BLF.WWW_WWW.Feedback;
    using BLF.WWW_User.Users;
    using Model.WWW_User.User;


    public class Msfeedback : BaseControl
    {
        protected string Membername;
        protected string obum="";
        protected string UrlRefer = "";
        protected override void OnLoad(EventArgs e)
        {

            if (HttpContext.Current.Request.UrlReferrer.AbsoluteUri != null)
            {
                UrlRefer = HttpContext.Current.Request.UrlReferrer.AbsoluteUri;
            }
            if (HttpContext.Current.User.Identity.Name != "")
            {
                Membername = HttpContext.Current.User.Identity.Name;
                obum = User.GetUserEmail(Membername);
            }
            Response.Write("<script>var MemberNo='" + HttpContext.Current.User.Identity.Name + "';var email='" + obum + "';var PageUrl='" + UrlRefer + "';</script>");
        }
       
       

    }
}
